//
//  UIImage+Extension.h
//  BusinessComponent
//
//  Created by linjie on 16/3/26.
//  Copyright © 2016年 ND. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extension)

+ (UIImage *) imageWithColor: (UIColor *)color frame:(CGRect)frame;

//缩放
+ (UIImage*) imageCompressWithSimple:(UIImage*)image scaledToSize:(CGSize)size;

/**
 *  剪切图片为正方形
 *
 *  @param image   原始图片比如size大小为(400x200)pixels
 *  @param newSize 正方形的size比如400pixels
 *
 *  @return 返回正方形图片(400x400)pixels
 */
- (UIImage *)squareImageFromImage:(UIImage *)image scaledToSize:(CGFloat)newSize;




@end
